/*  1:   */ package org.intellij.lang.regexp.psi.impl;
/*  2:   */ 
/*  3:   */

import com.intellij.lang.ASTNode;
import org.intellij.lang.regexp.RegExpElementTypes;
import org.intellij.lang.regexp.RegExpTT;
import org.intellij.lang.regexp.psi.RegExpClass;
import org.intellij.lang.regexp.psi.RegExpClassElement;
import org.intellij.lang.regexp.psi.RegExpElementVisitor;
import org.jetbrains.annotations.NotNull;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */ 
/* 11:   */ public class RegExpClassImpl
/* 12:   */   extends RegExpElementImpl
/* 13:   */   implements RegExpClass
/* 14:   */ {
/* 15:   */   public RegExpClassImpl(ASTNode paramASTNode)
/* 16:   */   {
/* 17:31 */     super(paramASTNode);
/* 18:   */   }
/* 19:   */   
/* 20:   */   public boolean isNegated()
/* 21:   */   {
/* 22:35 */     ASTNode localASTNode = getNode().getFirstChildNode();
/* 23:36 */     return (localASTNode != null) && (localASTNode.getElementType() == RegExpTT.CARET);
/* 24:   */   }
/* 25:   */   
/* 26:   */   @NotNull
/* 27:   */   public RegExpClassElement[] getElements()
/* 28:   */   {
/* 29:41 */     ASTNode[] arrayOfASTNode = getNode().getChildren(RegExpElementTypes.CLASS_ELEMENTS);
/* 30:42 */     RegExpClassElement[] arrayOfRegExpClassElement = new RegExpClassElement[arrayOfASTNode.length];
/* 31:43 */     for (int i = 0; i < arrayOfRegExpClassElement.length; i++) {
/* 32:44 */       arrayOfRegExpClassElement[i] = ((RegExpClassElement)arrayOfASTNode[i].getPsi());
/* 33:   */     }
/* 34:46 */     RegExpClassElement[] tmp48_47 = arrayOfRegExpClassElement;
/* 35:46 */     if (tmp48_47 == null) {
/* 36:46 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/lang/regexp/psi/impl/RegExpClassImpl", "getElements" }));
/* 37:   */     }
/* 38:46 */     return tmp48_47;
/* 39:   */   }
/* 40:   */   
/* 41:   */   public void accept(RegExpElementVisitor paramRegExpElementVisitor)
/* 42:   */   {
/* 43:50 */     paramRegExpElementVisitor.visitRegExpClass(this);
/* 44:   */   }
/* 45:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.lang.regexp.psi.impl.RegExpClassImpl

 * JD-Core Version:    0.7.0.1

 */